package com.nuedu.corejava.ch3;

import java.util.Scanner;
//直角三角形
public class Triangle {
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		System.out.println("请输入行数");
		int row = scanner.nextInt();
		int col=0,index=0;
	for(;index<row;index++){	
		for (int i = 0; i<index*2-1; i++) {
			System.out.print("*");
		}
		System.out.println();
	}
	}

}
